from django.db import models

class Product(models.Model):
	name = models.CharField(max_length = 16)
	description = models.CharField(max_length = 64,null = True)
	thumbnail = models.ImageField(upload_to = 'static/upload/',null = True)
	detail = models.CharField(max_length = 512, null = True)
	onSaleTime = models.DateTimeField(null = True)
	createTime = models.DateTimeField(auto_now = True)
	contractPhone = models.CharField(max_length = 11,null = True)
	isDelete = models.BooleanField(default=False)

	def __unicode__(self):
		return self.name
